home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 4129 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.2 KB  |  31 lines

  1. Newsgroups: comp.lang.c
  2. Path: howland.reston.ans.net!torn!nott!emr1!jagrant
  3. From: jagrant@emr1.emr.ca (John Grant)
  4. Subject: Re: windows c programming-localalloc.
  5. Message-ID: <DM4rrs.84w@emr1.emr.ca>
  6. Organization: Energy, Mines, and Resources, Ottawa
  7. References: <31113333.7B7D@Netvision.net.il>
  8. Date: Fri, 2 Feb 1996 04:14:16 GMT
  9.  
  10. In article <31113333.7B7D@Netvision.net.il> soulcage <soulcage@Netvision.net.il> writes:
  11. >i am programming c under windows 3.11
  12. >i have used malloc to allocate bytes of memory.
  13. >the program has terminated on protection fault.
  14. >i have changed the usage instead of malloc,to localalloc and locallock
  15. >from windows 3.11 SDK,
  16. >i want to know the outcome of using localalloc,and globalalloc
  17. >when shall i use any of them.,and is it matter that when i am compiling
  18. >i get an informative message that the segment will be lost during 
  19. >conversion.
  20. >
  21. >tnx ahead.
  22.     use only large model and malloc. Forget about Windows memory
  23.     functions.  Also, don't ask Windows questions here - go to
  24.     the comp.os.ms-windows.programmer.* groups for best results.
  25.     If you want more details, ask in the .programmer.memory group
  26.     and I'll answer you there.
  27. -- 
  28. John A. Grant                        jagrant@emr1.emr.ca
  29. Airborne Geophysics
  30. Geological Survey of Canada, Ottawa
  31.